//
//  PatterySurplusRecordCell.m
//  Toyota
//
//  Created by ld on 2024/6/26.
//

#import "PatterySurplusRecordCell.h"
#import "Definition.h"
#import "Helper.h"
@implementation PatterySurplusRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setData:(id)data index:(NSInteger)index {
    UILabel * powerSupplyLab  = [[UILabel alloc]initWithFrame:CGRectMake(20, 15, ScreenWidth - 40, 20)];
    powerSupplyLab.text = @"供电量：100kwh";
    powerSupplyLab.textColor = kColor141414;
    powerSupplyLab.font = fontBold(16);
    [self.contentView addSubview:powerSupplyLab];
    
    UILabel * timeLab = [[UILabel alloc]initWithFrame:CGRectMake(20, powerSupplyLab.customBottom + 5, ScreenWidth - 40, 20)];
    timeLab.text = @"2024-05-06 15:01至2024-05-06 16:04";
    timeLab.textColor = kColor686868;
    timeLab.font = fontSize(14);
    [self.contentView addSubview:timeLab];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
